<!DOCTYPE html>
<html lang="zh-Hans">

<head>
    <meta charset="utf-8">
    <title></title>
    <meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,minimum-scale=1.0, user-scalable=no,target-densitydpi=device-dpi,viewport-fit=cover">
    <!-- 用在360中 -->
    <meta name="renderer" content="webkit">
    <!-- 用在其它 -->
    <meta name="force-rendering" content="webkit">
    <!-- 针对 IE 浏览器 -->
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <!-- 针对百度搜索 -->
    <meta http-equiv="Cache-Control" content="no-transform">
    <meta name="format-detection" content="telephone=no,email=no,adress=no">
    <meta name="author" content="">
    <meta name="description" content="">
    <meta name="keywords" content="">
    <meta name="generator" content="">
    <meta name="robots" content="index,follow">
    <meta name="referrer" content="origin-when-cross-origin">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">

    <script src="kajax.js"></script>
</head>

<body>
    <h1>你好，世界！</h1>
    <!-- action="/save" -->
    <!-- <form method="POST" id="formElement">
        <input type="text" name="name" value="何平">
        <input type="tel" name="mobile" value="15826419347">
        <input type="file" name="fileName" id="fileInputElement">
        <input type="submit" value="点我">
    </form>
    <br> -->
    <!-- <div onclick="save2()">点我</div> -->

    <!-- <audio src="http:127.0.0.1:3031/upload/1543500772742.amr"> -->
    <audio controls="controls" src="/upload/1543500772742.amr">

    </audio>

    <script>
        var URl_HOST = 'http:127.0.0.1:3031';

        save();
        function save() {
            console.log('开始');
            post('/', 'token=eyJhbGciOiJIUzI1NiIsICJ0eXAiOiJKV1QifQ.eyJkYXRhIjoicmx1QzJqYWR6NHlSR3dQM003THlSL25VSUE3dGJDL1hiK2haRFcyQklMT1RXamlJQ25kSHp6bDROcXExRE9zanVBdW5Ba0svODZVb1AraFpMTTN2WmNCUWRpdEh3ZGhRVzcyS0VwcnY5ckloNjgybHNseUFNOERHT1ZvR3o0Z3cvUThHM1N2S0lvdlRkTjZ0UlV2NUNSWW5lYzNDTXBxcWtWd2ZjdUJUSC80RFJXckQvRGVXeXQvWUY3T09zM3N5IiwiaXYiOiJNalkzT0RnME9URXhNVGcxTXpZd09BPT0ifQ.18yp8nlFIdiMGLsgwboTVRMzMSDrbUGiH-Uc9fWANHg&url=SSd_7OCaqWssxHUGLN2S9Ce9If3eIZXwbf12_SYoGaf7Q1KvSZTDegjrOwLvG0ow',
                function (data, status) {
                    console.log({ this: this, data, status });
                });
        }

        // // save2();
        // function save2() {
        //     // var formData = new FormData(formElement);
        //     var formData = new FormData();

        //     formData.append("username", "Groucho");
        //     formData.append("accountnum", 123456); //数字123456会被立即转换成字符串 "123456"

        //     // HTML 文件类型input，由用户选择
        //     // formData.append("userfile", fileInputElement.files[0]);

        //     // JavaScript file-like 对象
        //     // var content = '<a id="a"><b id="b">hey!</b></a>'; // 新文件的正文...
        //     // var blob = new Blob([content], { type: "text/xml" });

        //     // formData.append("webmasterfile", blob);

        //     console.log(formData);
        //     postForm('/save', formData, function (data, status) {
        //         console.log({ this: this, data, status });
        //     });
        // }
    </script>
</body>

</html>